package com.ap.core.domain;

import com.ap.core.common.types.ParameterName;
import com.ap.core.domain.Identifiable;
import org.hibernate.annotations.TypeDef;

import javax.persistence.*;

/**
 * User: Ranjit.Singh
 */
@Entity
@Table(name = "T_PARAMETER")
@AttributeOverride(name = "id",column = @Column(name = "PARAMETER_ID"))
@TypeDef(name = "id", typeClass = Integer.class)
public class ApParameter extends Identifiable<Integer>{

    @Column(name = "parameter_name")
    @Enumerated(EnumType.STRING)
    private ParameterName parameterName;

    @Column(name = "parameter_value")
    private String parameterValue;

    private ApParameter(){}

    public ParameterName getParameterName() {
        return parameterName;
    }

    public String getParameterValue() {
        return parameterValue;
    }
}